@nice2dev/ui 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +144 -0
  2. package/dist/NiceErrorBoundary-B0262Ffc.js +770 -0
  3. package/dist/NiceErrorBoundary-BXOLv-zG.cjs +1 -0
  4. package/dist/NiceErrorBoundary-DsreAsON.cjs +1 -0
  5. package/dist/NiceErrorBoundary-HMfrXIir.js +770 -0
  6. package/dist/NiceForm-B7D1MASh.js +5383 -0
  7. package/dist/NiceForm-BA9zZdm8.cjs +382 -0
  8. package/dist/NiceForm-Ba9rvBoT.cjs +382 -0
  9. package/dist/NiceForm-DAGMJpgx.js +5383 -0
  10. package/dist/NiceModal-BVT9cZbf.cjs +1 -0
  11. package/dist/NiceModal-CiOYOWJy.cjs +1 -0
  12. package/dist/NiceModal-DZbHCdKq.js +95 -0
  13. package/dist/NiceModal-MeC1cNtW.js +95 -0
  14. package/dist/NiceModuleLifecyclePanel-BiX4KxaK.js +6781 -0
  15. package/dist/NiceModuleLifecyclePanel-CDo0iVfr.js +6781 -0
  16. package/dist/NiceModuleLifecyclePanel-DEJpoz5a.cjs +1 -0
  17. package/dist/NiceModuleLifecyclePanel-DrDTpH6K.cjs +1 -0
  18. package/dist/NiceModuleLifecyclePanel.css +1 -1
  19. package/dist/NicePagination-C8gx6Bcl.js +171 -0
  20. package/dist/NicePagination-CNxEAb4C.cjs +1 -0
  21. package/dist/NicePagination-Cg_WEf-R.cjs +1 -0
  22. package/dist/NicePagination-DQXdzx7W.js +171 -0
  23. package/dist/NicePinCodeInput-3WugpLHi.js +12240 -0
  24. package/dist/NicePinCodeInput-CSfRHs4v.cjs +419 -0
  25. package/dist/NicePinCodeInput-CjwFvOEQ.js +13092 -0
  26. package/dist/NicePinCodeInput-DoBQnMj9.cjs +694 -0
  27. package/dist/NiceSavedQueryPanel-DFDDuKWd.js +6597 -0
  28. package/dist/NiceSavedQueryPanel-DTU4eiIH.cjs +596 -0
  29. package/dist/NiceSavedQueryPanel-qtWETcRP.cjs +596 -0
  30. package/dist/NiceSavedQueryPanel-z29D7N_A.js +6584 -0
  31. package/dist/NiceTabs-B4dM77y_.js +1657 -0
  32. package/dist/NiceTabs-BTVTtRZR.cjs +1 -0
  33. package/dist/NiceTabs-BXGmot7J.cjs +1 -0
  34. package/dist/NiceTabs-DJdhKste.js +1657 -0
  35. package/dist/NiceWindow-Cs6-Dbci.js +1592 -0
  36. package/dist/NiceWindow-DYw4NCeb.js +1592 -0
  37. package/dist/NiceWindow-O_g8StvA.cjs +1 -0
  38. package/dist/NiceWindow-a4wB_m30.cjs +1 -0
  39. package/dist/NiceWindow.css +1 -0
  40. package/dist/charts-BDr6B81L.js +4657 -0
  41. package/dist/charts-Ci_KrAoU.cjs +761 -0
  42. package/dist/charts-ClxW-i5q.js +4657 -0
  43. package/dist/charts-Dr_FIPZT.cjs +761 -0
  44. package/dist/charts.cjs +1 -1
  45. package/dist/charts.mjs +1 -1
  46. package/dist/core-BIz6zQ5u.cjs +122 -0
  47. package/dist/core-BYxnKGOi.js +23141 -0
  48. package/dist/core-Cjw8oBvC.cjs +96 -0
  49. package/dist/core-xcuNJ-DB.js +24948 -0
  50. package/dist/data-branching-Byz79mmA.cjs +1 -0
  51. package/dist/data-branching-DjuerHfS.js +6133 -0
  52. package/dist/data-branching.cjs +1 -1
  53. package/dist/data-branching.d.ts +3 -0
  54. package/dist/data-branching.mjs +1 -1
  55. package/dist/data.cjs +1 -1
  56. package/dist/data.d.ts +10 -7
  57. package/dist/data.mjs +1 -1
  58. package/dist/devops-DYFov8j3.js +7684 -0
  59. package/dist/devops-g4qcLXah.cjs +17 -0
  60. package/dist/devops.cjs +1 -1
  61. package/dist/devops.d.ts +5 -0
  62. package/dist/devops.mjs +1 -1
  63. package/dist/editors.cjs +1 -1
  64. package/dist/editors.d.ts +172 -1
  65. package/dist/editors.mjs +44 -41
  66. package/dist/feedback.cjs +1 -1
  67. package/dist/feedback.d.ts +1 -2
  68. package/dist/feedback.mjs +2 -2
  69. package/dist/index-AEO3cK4T.cjs +5194 -0
  70. package/dist/index-BMQ-F0zE.js +65054 -0
  71. package/dist/index-BNb9q4Ll.cjs +5490 -0
  72. package/dist/index-CjdfogVa.js +66711 -0
  73. package/dist/index.cjs +1 -1
  74. package/dist/index.d.ts +504 -25
  75. package/dist/index.mjs +979 -963
  76. package/dist/lazy.cjs +1 -1
  77. package/dist/lazy.d.ts +11 -0
  78. package/dist/lazy.mjs +24 -24
  79. package/dist/navigation.cjs +1 -1
  80. package/dist/navigation.mjs +34 -34
  81. package/dist/no-code-Dl3ima61.cjs +332 -0
  82. package/dist/no-code-ktRzFaET.js +7133 -0
  83. package/dist/no-code.cjs +1 -1
  84. package/dist/no-code.d.ts +11 -0
  85. package/dist/no-code.mjs +1 -1
  86. package/dist/overlays.cjs +1 -1
  87. package/dist/overlays.d.ts +38 -0
  88. package/dist/overlays.mjs +48 -48
  89. package/dist/style.css +5 -2
  90. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,149 @@
1
+ # [1.0.22] — 2026-06-03
2
+
3
+ ### Added — Module Editor controls (OmniVerk brief §5, universal/reusable)
4
+
5
+ A set of framework-agnostic controls for building module/manifest editors. All
6
+ controls are execution-agnostic — the consumer supplies `onRun` / `onSend` /
7
+ `onTestConnection`, so sandboxing stays on the host side.
8
+
9
+ - **`NiceScriptRunner`** — inline script test runner: code editor + JSON input +
10
+ Run + captured logs + result pane. Never evals itself; consumer provides `onRun`.
11
+ - **`NiceLogConsole`** — reusable, controlled log/output panel (script runs,
12
+ webhook replays, or `NiceConsole`'s bottom dock). Level filtering + auto-scroll.
13
+ - **`NiceKeyValueEditor`** — key/value list editor (headers / env vars /
14
+ credentials) with masked secret rows, per-row enable, descriptions, key
15
+ autocomplete and duplicate-key detection.
16
+ - **`NiceLifecycleHooksEditor`** — bind handlers to lifecycle triggers with
17
+ per-binding order, enable flag and optional condition (generalises the
18
+ `NiceGitHooks` pattern for any trigger → handler scenario).
19
+ - **`NiceRevisionHistory`** — revision timeline with side-by-side diff
20
+ (`NiceCodeDiffEditor`) and rollback; inline or lazily-loaded content.
21
+ - **`NiceCodeEditor`** — new additive prop **`extraLibs`** feeds `.d.ts` sources
22
+ to Monaco for IntelliSense (e.g. a generated `ctx.d.ts`). Backward compatible.
23
+
24
+ Companion controls ship in sibling packages: `NiceSchemaForm` +
25
+ `NiceManifestEditor` (`@nice2dev/ui-forms`), `NicePaymentProviderConfig` /
26
+ `NicePaymentMethodSelector` + `NICE_PAYMENT_PROVIDER_PROFILES`
27
+ (`@nice2dev/ui-money`), and `NiceWebhookTester` (`@nice2dev/ui-api`). Each is
28
+ demoed (with feedback) under its own package's showcase page.
29
+
30
+ **Module-creation suite** (`@nice2dev/ui-forms`): `NiceModuleEditor` — an
31
+ end-to-end, headless-IO tool (browse → manifest + entities + i18n → validate →
32
+ save via a pluggable `NiceModuleDataProvider`) — plus `NiceEntityEditor`,
33
+ `NiceI18nEditor` and `NiceArrayField` (structured array-of-objects editing, which
34
+ also upgrades `NiceSchemaForm` so manifest arrays like `modules[]`/`dependencyRefs[]`
35
+ are edited in a grid instead of raw JSON). Demoed in the UI Forms showcase with a
36
+ File System Access adapter for editing real on-disk modules.
37
+
38
+ **Unified view standard (one editor for forms / grids / detail / dashboards / pages).**
39
+ The repo had several overlapping view models (form `FormSchema`, generic
40
+ `NiceViewDefinition`, BI `Dashboard`) and a mature runtime engine
41
+ (`NiceViewDefinitionV2` + `NiceViewRendererV2` + `NiceViewRegistry` + `NiceCodeGenerator`
42
+ for TS/Dart/RBAC + `NiceCrossPlatformSchema`) — but **no visual editor** for it.
43
+ This release adds that editor and converges the rest onto the one model:
44
+
45
+ - **`NiceViewEditor`** (`@nice2dev/ui`) — the single visual authoring tool for
46
+ `NiceViewDefinitionV2`: palette (control registry) · canvas (rows/cells +
47
+ colSpan, Design / Preview / Source) · properties (props · data **binding**
48
+ `source/field/twoWay` · **role-based permissions** · events → no-code actions) ·
49
+ data-sources panel · live preview via `NiceViewRendererV2`. A BI control is just
50
+ a control bound to a data source, so charts/KPIs work inside any view (incl. forms).
51
+ - **`NiceActionBuilder`** (`@nice2dev/ui`) — visual no-code editor over the typed
52
+ `NiceViewAction[]` (navigate / apiCall / setField / refresh / dialog / **script** …).
53
+ - **`entityToViewV2`** (`@nice2dev/ui`) — scaffold a form / detail / grid view from
54
+ an entity (dataType → control mapping); defaults to the OmniVerk
55
+ `ModuleEntity`/`ModuleEntityField` shape but works with any `fields[]` entity.
56
+ - **V2 inline scripts** — `NiceViewAction` gains a `'script'` type + `script`/`language`
57
+ (inline JS/C#, executed by the host — never the UI). Additive, back-compatible.
58
+ - **`NiceModuleEditor`** gains a **Views** tab + `NiceModuleFiles.views` — author a
59
+ module's views (and "New view from entity") right inside the module editor; views
60
+ serialize as `*.view.json` and feed the existing `NiceCodeGenerator`.
61
+ - **Convergence adapters** (back-compatible; the legacy builders keep working):
62
+ `formSchemaToV2` / `v2ToFormSchema` (`@nice2dev/ui-forms`),
63
+ `viewDefinitionToV2` / `v2ToViewDefinition` (`@nice2dev/ui-designers`),
64
+ `dashboardToV2` (`@nice2dev/ui-bi`). `NiceViewEditor` is the recommended path
65
+ going forward; the legacy `NiceFormBuilder`/`NiceFormDesigner`/`NiceViewBuilder`/
66
+ `NiceDashboardDesigner`/`NiceDashboardStudio`/`NiceReportBuilder` converge onto it
67
+ via these adapters (hard `@deprecated` tagging to follow once consumers migrate).
68
+ (`@nice2dev/ui-bi` gains a `@nice2dev/ui` devDependency for the type-only adapter.)
69
+
70
+ **Tutorials** — a universal, decoupled tutorial launcher so any editor can expose
71
+ an optional "?" button that runs a translated `NiceTutorial`. `@nice2dev/ui-core`
72
+ adds `NiceTutorialButton`, `NiceTutorialsProvider`, `useNiceTutorials` /
73
+ `useNiceTutorialsEnabled`, `resolveTutorial`/`resolveStepsI18n` and the
74
+ `NiceComponentTutorial` prop type; `@nice2dev/ui` adds `NiceTutorialHost` (mount
75
+ once; bridges to `NiceTutorial`; `enabled` is the global "hide all tutorials"
76
+ switch). Steps are i18n-key aware (`t(key, enDefault)` → falls back to the inline
77
+ English). Editors opt in via an optional `tutorial?` prop (off by default).
78
+ Adopted with built-in EN + PL tours — `@nice2dev/ui-forms`: `NiceModuleEditor`,
79
+ `NiceManifestEditor`, `NiceSchemaForm`, `NiceEntityEditor`, `NiceI18nEditor`,
80
+ `NiceFormBuilder`, `NiceFormDesigner`; `@nice2dev/ui-money`:
81
+ `NicePaymentProviderConfig`; `@nice2dev/ui-api`: `NiceWebhookTester`,
82
+ `NiceAPIDesigner`, `NiceAPITester`, `NiceIntegrationBuilder`. `@nice2dev/ui` —
83
+ **all editors/designers/builders/studios**: `NiceCodeEditor`, `NiceMarkdownEditor`,
84
+ `NiceHtmlEditor`, `NiceDocumentEditor`, `NiceScriptRunner`, `NiceKeyValueEditor`,
85
+ `NiceLifecycleHooksEditor`, `NiceRevisionHistory`, `NiceKanbanBoard`,
86
+ `NiceQueryBuilder`, `NiceFilterBuilder`, `NiceWorkflowDesigner`,
87
+ `NiceLowCodeStudio`, `NiceComponentDesigner`, `NicePageBuilder`,
88
+ `NiceStateDesigner`, `NiceTestBuilder`, `NiceThemeBuilder`/`NiceThemeDesigner`,
89
+ `NiceDiagramDesigner`, `NiceReportBuilder`, `NiceERPReportDesigner`,
90
+ `NiceRecipeEditor`, `NicePipelineEditor`, `NiceMergeRequestBuilder`,
91
+ `NiceAutomationRuleEditor`, `NiceSceneActionBuilder`, `NiceBackupTagEditor`,
92
+ `NiceDataMergeBuilder`, `NiceInvoiceLineEditor`, `NiceImageEditor`,
93
+ `NiceCropEditor`, `NicePDFAnnotationEditor`, `NiceVideoEditor`. Domain packages
94
+ (import the launcher from `@nice2dev/ui`) — `ui-designers`:
95
+ `NiceViewBuilder`, `NiceDashboardDesigner`, `NiceWorkflowDesigner`; `ui-3d`:
96
+ `NiceMaterialEditor`, `NiceArmatureEditor`, `NiceMorphTargetEditor`,
97
+ `NiceTerrainEditor`, `NiceParticleEditor`, `NiceUVEditor`; `ui-graphics`:
98
+ `NiceFontEditor`, `NiceIconEditor`, `NiceUIDesigner`; `game-engine`:
99
+ `NiceGameEditor`, `NiceLevelEditor`, `NiceMaterialEditor`, `NiceParticleEditor`;
100
+ `ui-buildings`: `NiceFloorPlanEditor`, `NiceSceneEditor`, `NiceAutomationEditor`,
101
+ `NiceSpatialEditor`; `ui-diagrams`: `NiceDecisionTreeEditor`, `NiceDiagramEditor`;
102
+ `ui-enterprise`: `NiceContractEditor`, `NiceInvoiceDesigner`; `ui-presentations`:
103
+ `NicePresentationEditor`. Standalone packages (which gain a `@nice2dev/ui-core`
104
+ peer dependency and import the launcher from it) — `ui-bi`:
105
+ `NiceDashboardStudio`, `NiceReportBuilder`, `NiceETLBuilder`; `ui-video`:
106
+ `NiceVideoEditor`; `ui-ai`: `NiceMLStudio`; `ui-math`: `NiceMathEditor`;
107
+ `ui-audio`: `NiceDmxEditor`. (`ui-api` likewise gains a `@nice2dev/ui-core` peer
108
+ dependency for the launcher button.) **~75 editors across 17 packages now expose
109
+ the optional "?" tour (off by default), every tour with EN + PL.**
110
+
111
+ ### Fixed
112
+
113
+ - **Theming** — the new controls now drive all colours through the `--nice-*`
114
+ theme alias layer (e.g. `--nice-surface`, `--nice-bg-secondary`) instead of
115
+ undefined token names, so they follow the active light/dark theme.
116
+ `NiceLogConsole` no longer hard-codes a dark palette (the `theme` prop was
117
+ removed; it inherits the app theme).
118
+
1
119
  # [1.0.21] — 2026-05-30
2
120
 
121
+ ### Fixed / Reworked — NiceTutorial visual + UX overhaul
122
+
123
+ - **Tooltip is now a properly themed card** (background, border, shadow,
124
+ padding). Previously the component shipped without a stylesheet so the
125
+ body floated invisibly on the dark overlay.
126
+ - **Spotlight padding default `8 → 0`** — the highlight ring now sits flush
127
+ against the target. Keep the buffer by setting `step.highlightPadding`
128
+ per-step.
129
+ - **`buttonsPlacement` prop** — controls where Skip/Prev/Next/Play live:
130
+ - `'floating-bottom'` (new default): fixed bottom-center bar that
131
+ never jumps between steps and never overlaps the tooltip body.
132
+ - `'inline'`: legacy behaviour (footer inside the tooltip).
133
+ - **`buttonsDisplay` prop** — `'icon'` (new default), `'icon-text'`, or
134
+ `'text'` (legacy). Icon mode renders round 32×32 buttons; pill shape
135
+ for icon-text / text.
136
+ - **Autoplay support** — opt-out via `showAutoplay={false}` (default `true`):
137
+ PLAY/PAUSE button, progress bar, and speed slider (range configurable
138
+ via `autoplaySpeedRange`, default 2–15 s). `autoplayInterval` sets the
139
+ initial speed (default 5000 ms). `onAutoplayChange` callback.
140
+ - **New `labels` entries** — `play`, `pause`, `speed`, `close`. NavShell
141
+ zasila je z istniejących kluczy `tutorial.*` (EN + PL).
142
+ - **Six inline SVG icons** (close / prev / next / skip / play / pause)
143
+ matching the existing house style. No new peer deps.
144
+ - **i18n** — nowe klucze `tutorial.play`, `tutorial.pause`, `tutorial.speed`,
145
+ `tutorial.close` (EN + PL).
146
+
3
147
  ### Added — NiceNavShell sticky body slots
4
148
 
5
149
  - 4 nowe propsy: `showStickyHeader` (default `false`), `stickyHeaderContent`,